<?php
/**
 * @file
 * Contains \Drupal\discogs\Controller\ArtistController.
 */

namespace Drupal\discogs\Controller;

use Drupal\discogs\ArtistInterface;
use Drupal\Core\Controller\ControllerBase;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;

/**
 * Controller routines for ArtistController routes.
 */
class ArtistController extends ControllerBase {
	public function ArtistEntityPage(ArtistInterface $artist) {
		$view_builder = \Drupal::entityManager()->getViewBuilder('artist');
		$build = $view_builder->view($artist);
		return $build;
	}
	
	public function ArtistEntityPageTitle(ArtistInterface $artist) {
		return $artist->get('name');
	}

}
?>
